package org.hzero.order;

import org.hzero.core.jackson.annotation.EnableObjectMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.bind.annotation.RestController;

import io.choerodon.resource.annoation.EnableChoerodonResourceServer;

@ComponentScan(value = {
        "org.hzero.order.api",
        "org.hzero.order.app",
        "org.hzero.order.config",
        "org.hzero.order.domain",
        "org.hzero.order.infra",
})
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableObjectMapper
@EnableFeignClients("org.hzero.order")
@RestController
@EnableChoerodonResourceServer
@EnableDiscoveryClient
@SpringBootApplication
public class AmsHzeroOrder25044Application {

    public static void main(String[] args) {
        SpringApplication.run(AmsHzeroOrder25044Application.class, args);
    }
}


